<?php

/**
 * Session interface
 *
 * All session classes should implement this interface. See DefaultSession and VisitorSession for more details
 */

interface ISession {
	/**
	 * Returns the (unique) identifier for this session
	 */
	public function getIdentifier();
	
	/**
	 * Updates the value of the specified variable name for this session.
	 *
	 * @param string name the variable name to be updated
	 * @param string value the new value
	 */
	public function set($name, $value);
	
	/**
	 * Returns the value of the value with the specified name
	 *
	 * @pamra string name the variable name
	 */
	public function get($name);
	
	/**
	 * Returns true only and only if the specified variable exists
	 */
	public function exists($name);
}

?>